﻿    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Ajax.aspx.cs" Inherits="WebApplication2.Web.TestAjax" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Ajax接口测试页</title>
	<%--<meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">--%>
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="../css/font.css" rel="stylesheet" />
    <link href="../css/xadmin.css" rel="stylesheet" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <script src="../js/jquery-3.2.1.min.js"></script>
    <script src="../lib/layui/layui.js"></script>
    <script src="../js/xadmin.js"></script>
    <script src="../js/public.js"></script>
</head>
<body>


<h2>这是一个用来调试接口的页面</h2>
<p>This is a paragraph.</p>
<p></p>
<button type="button">Click me</button>



  <script type="text/javascript">
    $(document).ready(function () {
        $("button").click(function () {
            var objEmLogin = new Object();
            objEmLogin.empAccount = 'admin';
            objEmLogin.pwd = '123456';
            objEmLogin.pr_id = '456';
            objEmLogin.project_id = '123';
            myAjax("FileHandler.ashx", "getURL", objEmLogin, true, function (data) {
                console.log(data);
            }, function () {
                layer.msg('发生了一些预期之外的错误，请检查网络是否能连接到服务器');
            });

        });
    });
</script>
</body>
</html>
